package com.arelikebrothers.demo.java8.lambda;

import static java.lang.System.out;

/**
 * Created by qiuzhongrun on 30/04/2017.
 */
public class Hello {
    Runnable rThis = () -> out.println(this);
    Runnable rToStr = () -> out.println(toString());

    Runnable oldWay = new Runnable() {
        @Override
        public void run() {
            out.print(this);
        }
    };

    public String toString() {
        return "Hello, world!";
    }
}
